<template>
	<view class="content">
		<uni-nav-bar left-icon="left" color="#4a87b6" title="关于我" @clickLeft="back()" background-color="#efefef"/>	
		<web-view v-if="isShow" :webview-styles="webviewStyles" :src="url"></web-view>
		<view v-if="!isShow" class="info">
			<text selectable="true">
				由于gitee安全策略CSP的原因，请自行访问:
			</text>
			<view>
				https://gitee.com/taritaris
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				webviewStyles: {
					progress: {
						color: '#FF3333'
					}
				},
				url:"",
				isShow:"true"
			}
		},
		onLoad(e) {
			this.url = e.url
			if(e.url == 3){
				this.isShow = false
			}
		},
		methods:{
			back(){
				uni.navigateBack({
					delta:1
				})
			}
		}
	}
</script>

<style>
	.content{
		.info{
			text{
				display: flex;
				justify-content: center;
				align-items: center;
			}
			
			view{
				display: flex;
				justify-content: center;
				align-items: center;
			}
		}
	}
</style>
